package com.hotelManager.www.controller;

import com.hotelManager.www.po.User;
import com.hotelManager.www.po.Shop;
import com.hotelManager.www.service.UserService;

public class AuthController {
    private final UserService userService = new UserService();

    // 注册商家用户
    public boolean registerMerchantUser(User user) {
        return userService.registerMerchantUser(user);
    }

    // 注册普通用户
    public boolean registerUser(User user) {
        return userService.registerUser(user);
    }

    // 登录逻辑
    public User login(String username, String password) {
        return userService.loginUser(username, password);
    }
}